package com.itheima.reggie.srevice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品的同时，需要新增菜品口味
    @Transactional
    public void saveWithFlavor(DishDto dishDto);

    //根据ID查询菜品口味信息
    public DishDto getByIdWithFlavor(Long id);

    @Transactional
    public void updateWithFlavor(DishDto dishDto);

    @Transactional
    public void deleteWithFlavor(List<Long> ids);

    @Transactional
    public void updateWithStatus(Integer status,List<Long> ids);


}
